<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">服务部署记录</h1>
</div>
<div class="wrapper-md">
  <div class="panel panel-default">

    <!--  按钮  -->
    <div class="panel-heading">
      <div class="row">
        <div class="col-sm-3">
          <button class="btn m-b-xs w-xs btn-success" ng-click="search()">搜索</button>
        </div>
      </div>
    </div>

    <!--  搜索框  -->
    <div class="row wrapper">
      <div class="col-sm-4 m-b-xs">
        <div class="input-group" >
          <div class="input-group-btn" >
            <span class="btn btn-default">应用名</span>
          </div>
          <input type="text" class="form-control ng-pristine ng-valid ng-touched" ng-model="search.app_name">
        </div>
      </div>
      <div class="col-sm-4 m-b-xs">
        <div class="input-group" >
          <div class="input-group-btn" >
            <span class="btn btn-default">构建用户</span>
          </div>
          <input type="text" class="form-control ng-pristine ng-valid ng-touched" ng-model="search.user">
        </div>
      </div>
      
    </div>

    <!--  数据表格  -->
    <table class="table table-striped table-bordered ng-isolate-scope dataTable no-footer" 
      style="display: table; width: 100%;table-layout:fixed;">
      <thead>
        <tr>
          <th class="text-center" style="width: 12%">应用名</th>
          <th class="text-center" style="width: 10%">部署版本</th>
          <th class="text-center" style="width: 10%">运行环境</th>
          <th class="text-center" style="width: 12%">部署用户</th>
          <th class="text-center" style="width: 18%">部署时间</th>
          <th class="text-center" style="width: 38%">版本描述</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="info in deploy_historys">
          <td>{{info.app_name}}</td>
          <td class="text-center">{{info.version_code}}</td>
          <td class="text-center">{{info.version_environment}}</td>
          <td class="text-center">{{info.user}}</td>
          <td class="text-center">{{info.deploy_time}}</td>
          <td>{{info.version_describe}}</td>
        </tr>
      </tbody>
    </table>

    <div class="text-right" style="background-color: white">
    <pagination total-items="totalItems" ng-model="currentPage" ng-change="search()" previous-text="上一页" next-text="下一页"
      first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
      class="m-t-none m-b"></pagination>
    </div>

    
  </div>
</div>
